<!-- 使用 type="home" 属性设置首页，其他页面不需要设置，默认为page；推荐使用json5，更强大，且允许注释 -->
<route lang="json5">
{
  style: {
    navigationBarTitleText: '详情',
    enablePullDownRefresh: false,
  },
}
</route>
<template>
  <view v-if="data">
    <view class="text-base text-[40rpx] mt-[60rpx] text-center font-bold">
      {{ data.row.title }}
    </view>
    <view class="m-4">
      <uv-parse :content="imgDeal(data.row.content)"></uv-parse>
    </view>
  </view>
</template>

<script setup>
import { fetchBusinessDetail } from '@/service/cooperation'
import useRequest from '@/hooks/useRequest'
import { imgDeal } from '@/utils/format'

const { run, data, loading } = useRequest(fetchBusinessDetail)

onLoad((options) => {
  run(options.id)
})
</script>

<style lang="scss" scoped></style>
